package club.zhilin.guli.service.edu.service;

import club.zhilin.guli.service.edu.domain.Subject;
import club.zhilin.guli.service.edu.domain.vo.SubjectVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.InputStream;
import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author zhilin
 * @since 2022-01-11 15:29:01
 */
public interface ISubjectService extends IService<Subject> {

    /**
     * 批量导入subject
     *
     * @param inputStream 输入流
     */
    void batchImport(InputStream inputStream);

    /**
     * 返回嵌套数据
     *
     * @param parentId 父节点id
     * @return list
     */
    List<SubjectVO> nestedList(String parentId);
}
